#ifndef _TOOLSPANEL_H
#define	_TOOLSPANEL_H

#include <QtOpenGL/QGLWidget>
#include <QPushButton>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QLineEdit>
#include "../geometry/polygon.h"
#include "paintdata.h"

class ToolsPanel : public QWidget
{
    Q_OBJECT

public:
    ToolsPanel(paint_data_t * data, QWidget * parent = NULL);

private:
    paint_data_t * data_;
    QSpinBox * list_;
    QLabel * intersections_;
    QDoubleSpinBox * cell_size_;

private slots:
    void on_save_button_clicked();
    void on_add_contour_clicked();
    void on_delete_contour_clicked();
    void recount_intersections();
    void on_list_valueChanged(int current_ring);
    void on_cell_size_valueChanged(double value);
    //void on_change_cells_clicked();
};

#endif	/* _TOOLSPANEL_H */
